<template>
  <div>
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
     <!--  <el-tab-pane label="供电单位管理" name="1">
        <powerSupply v-if="activeName === '1'"></powerSupply>
      </el-tab-pane> -->
      <el-tab-pane label="网格管理" name="1">
        <gridManage v-if="activeName === '1'"></gridManage>
      </el-tab-pane>
      <el-tab-pane label="开闭所管理" name="2">
         <switchStation v-if="activeName === '2'"></switchStation>
      </el-tab-pane>
     <!--  <el-tab-pane label="线路管理" name="3">
        <lineManagement v-if="activeName === '3'"></lineManagement>
      </el-tab-pane>
      <el-tab-pane label="台区管理" name="4">
        <StationAreaManagement v-if="activeName === '4'"></StationAreaManagement>
      </el-tab-pane> -->
      <el-tab-pane label="片区/村社管理" name="3">
        <CommunityManagement v-if="activeName === '3'"></CommunityManagement>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup lang="ts">
import StationAreaManagement from './components/stationAreaManagement.vue'
import CommunityManagement from './components/communityManagement.vue'
import powerSupply from './components/powerSupply.vue'
import  lineManagement from './components/lineManagement.vue'
import switchStation from './components/switchStation.vue'
import gridManage from './components/gridManage.vue'
import type { TabsPaneContext } from 'element-plus'
const activeName = ref('1')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  // console.log(tab, event)
}
</script>

<style lang="scss" scoped>
:deep(.el-tabs__nav-scroll) {
  background-color: #fff;
  padding-left: 20px;
}
</style>
